Count The Number Of Arrays With K Matching Adjacent Elements